#include "lynxi_base.h"
#include "opencv2/imgcodecs.hpp"
#include "opencv2/imgproc.hpp"

#define EV_ID_MAXLEN (1024)

namespace ev
{

    EVLynxiModel::EVLynxiModel() { EVLOG(INFO) << "this is a Lynxi engine"; }

    EVLynxiModel::~EVLynxiModel() {}

    void EVLynxiModel::LoadLynxiModel(const std::string str_model_name)
    {
        EVLOG(INFO) << "load lynxi model";
        int ret = m_linxi_handle.loadModel(str_model_name, &m_lynxi_model);
        if (ret != 0)
        {
            EVLOG(ERROR) << "load lynxi model wrong, please check " << str_model_name;
            exit(-1);
        }
        EVLOG(INFO) << "load lynxi model done";
        m_is_ok = true;
    }

} // namespace ev
